package kr.saeildamil.androidstudy_second.br;

import kr.saeildamil.androidstudy_second.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Ch29Main extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ch29_main);
	}

	public void mOnClick(View v) {
		Intent intent = new Intent();
		switch (v.getId()) {
		case R.id.ch29_btn01:
			intent.setClass(this, NapEnd.class);
			break;
		case R.id.ch29_btn02:
			intent.setClass(this, NapAlarm.class);
			break;
		case R.id.ch29and30_btn03:
			intent.setClass(this, DetectFree.class);
			break;
		case R.id.ch29and30_btn04:
			intent.setClass(this, DetectSaveZone.class);
			break;
		case R.id.ch29and30_btn05:
			intent.setClass(this, OnSaveZone.class);
			break;
		case R.id.ch29and30_btn06:
			intent.setClass(this, MusicServiceTest.class);
			break;
		case R.id.ch29and30_btn07:
			intent.setClass(this, NewsServiceTest.class);
			break;
		case R.id.ch29and30_btn08:
			intent.setClass(this, BoundServiceTest.class);
			break;
		case R.id.ch29and30_btn09:
			intent.setClass(this, MessangerServiceTest.class);
			break;
		case R.id.ch29and30_btn10:
			intent.setClass(this, AlarmTest.class);
			break;
		}
		startActivity(intent);
	}
}